//
//  NDDDPageViewController.h
//  easydoctor
//
//  Created by 丁东 on 15/11/16.
//  Copyright © 2015年 easygroup. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NDPageConfig.h"
#import "NDPageHeaderView.h"
@protocol NDPageViewControllerDelegate <NSObject>
@optional
-(void)pageViewOpenMenuAtIndex:(NSInteger)index;

-(void)pageViewCloseMenuAtIndex:(NSInteger)index;

-(void)pageViewSelectAtIndex:(NSInteger)index;

@end

@interface NDPageViewController : UIViewController

//控制器数组
@property (nonatomic,strong)NSArray *classArray;

//标题数组
@property (nonatomic,strong)NSArray *titleArray;

//配置文件
@property (nonatomic,strong)NDPageConfig *config;

@property (nonatomic,strong)NDPageHeaderView *pageHader;

@property (nonatomic,weak) id <NDPageViewControllerDelegate> delegate;



//选中位置 默认为0
@property (nonatomic) NSInteger selectIndex;

-(id)initWithClassArray:(NSArray*)classArray titleArray:(NSArray*)titleArray config:(NDPageConfig*)config;

-(void)setSelectIndex:(NSInteger)selectIndex withAnimation:(BOOL)animation;

@end
